﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ICommand.cs" company="DissingNelleman">
//   
// All rights reserved. </copyright>
// <summary>
//   The i command.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace ServiceLibrary.Services
{
    using System;
    using System.Runtime.Serialization;

    using NHibernate;

    using ServiceLibrary.Models.Domain;

    /// <summary>
    /// The i command.
    /// </summary>
    [DataContract]
// ReSharper disable InconsistentNaming
    public class ICommand
// ReSharper restore InconsistentNaming
    {
        #region Public Methods and Operators

        /// <summary>
        /// The execute.
        /// </summary>
        /// <param name="hsession">
        /// The hsession.
        /// </param>
        /// <param name="activeUser">
        /// The active user.
        /// </param>
        public virtual void Execute(ISession hsession, User activeUser)
        {
        }

        /// <summary>
        /// The get derived type.
        /// </summary>
        /// <returns>
        /// The <see cref="Type"/>.
        /// </returns>
        public Type GetDerivedType()
        {
            Type t = this.GetType();

            return t;
        }

        #endregion
    }
}